#include "Skybox.h"
#include "Game.h"
#include "Model3D.h"
#include "ModelsManager.h"

Skybox::Skybox()
{

}

Skybox::Skybox(const Skybox&)
{

}

Skybox::~Skybox()
{

}


void Skybox::Initialize()
{
	mModel3D = ModelsManager::Instance()->GetModel(0);
}

void Skybox::Render()
{

	Game::Instance()->GetShader()->SetLightDirLightDisable();

	XMFLOAT4X4 viewMatrix, projectionMatrix,identity;
	XMStoreFloat4x4(&identity, XMMatrixIdentity());
	viewMatrix = *Game::Instance()->GetCamera()->GetFixedViewMatrix();
	projectionMatrix = *CDirect3D::Instance()->GetProjectionMatrix();

	mModel3D->Render(identity,viewMatrix, projectionMatrix);

	Game::Instance()->GetShader()->SetLightDirLightEnable();
}
